package com.fz.mapper;

import com.fz.controller.request.BaseRequest;
import com.fz.controller.request.UserPageRequest;
import com.fz.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    List<User> list();

    //查询用户，返回
    List<User> listByCondition(BaseRequest baseRequest);

    //添加用户
    void addUser(User user);

    //通过id查询
    User getById(Integer id);

    void updateById(User user);

    void deleteById(Integer id);

    User getByUsername(String username);


}
